package com.scu.qingshi.facade.backdoor;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * 测试类
 * @author qingshi
 */
@Api(tags = "测试模块")
@RequestMapping("/test")
@RestController
public class Test {

    private final Logger logger = LogManager.getLogger(this.getClass());

    @ApiOperation("日志测试")
    @GetMapping("/log")
    public String test(){
        String a = "绯村剑心";
        logger.info("info log,{}",a);
        logger.debug("debug log");
        logger.error("error log");
        logger.warn("warn log");
        return "423";
    }

}
